package com.huan.entity;

import java.sql.Timestamp;

public class News {

    private int id;

    private int categoryId;

    private String title;

    private String summary;

    private String content;

    private String picpath;

    private String author;

    private Timestamp createdate;

    private Timestamp modifydate;

    public int getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public int getCategoryId()
    {
        return categoryId;
    }

    public void setCategoryId(int categoryId)
    {
        this.categoryId = categoryId;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getSummary()
    {
        return summary;
    }

    public void setSummary(String summary)
    {
        this.summary = summary;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getPicpath()
    {
        return picpath;
    }

    public void setPicpath(String picpath)
    {
        this.picpath = picpath;
    }

    public String getAuthor()
    {
        return author;
    }

    public void setAuthor(String author)
    {
        this.author = author;
    }

    public Timestamp getCreatedate()
    {
        return createdate;
    }

    public void setCreatedate(Timestamp createdate)
    {
        this.createdate = createdate;
    }

    public Timestamp getModifydate()
    {
        return modifydate;
    }

    public void setModifydate(Timestamp modifydate)
    {
        this.modifydate = modifydate;
    }


    @Override
    public String toString()
    {
        return "News{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", title='" + title + '\'' +
                ", summary='" + summary + '\'' +
                ", content='" + content + '\'' +
                ", picpath='" + picpath + '\'' +
                ", author='" + author + '\'' +
                ", createdate=" + createdate +
                ", modifydate=" + modifydate +
                '}';
    }
}

